import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

export default new Vuex.Store({
    state:{
        title:'hello Vuex',
        age:'20',
        gender:'boy'
    },
    mutations:{
        setTitle(state,data){
            state.title=data;
        },
        setAge(state,data){
            state.age=data;
        },
        setGender(state,data){
            state.gender=data;
        },
    }
})